#pragma once
#include "api.h"

class dmConsBlockData;

namespace Dimine{ namespace Entity{
	ref class dmBlockAttributeCollectionCS;

	public ref class dmConsBlockDataCS
	{
		DEF_NATIVE(dmConsBlockData,dmConsBlockDataCS)
	public:
		dmConsBlockDataCS();
		bool Save(STRINGCS filename);
		bool Load(STRINGCS filename);
		dmBlockAttributeCollectionCS^ QueryCell(double x,double y,double z);
		double ComputeMetalQuantity(STRINGCS attName){return ComputeMetalQuantity(attName,1);}
		double ComputeMetalQuantity(STRINGCS attName, double density);
		int ComputeOreAndRockQuantity(STRINGCS attName, double% ore,double% rock,double% metal,double oreDensity,double rockDensity);
	};

}}